package com.qtummatrix.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * create by Gongshiyong  2019-12-07 11:25
 */
public interface ModelDao {
    //获取所有的所属银行
    public List<Map<String, Object>> getAllproductBankName();

    //获取所有的产品系列
    public List<Map<String, Object>> getAllproductSerie();

    //获取所有的产品名称
    public List<Map<String, Object>> getAllproductName();

    //获取所有的目标客群
    public List<Map<String, Object>> getAllcustomType();

    //获取所有的模型状态
    public List<Map<String, Object>> getAllmodelState();

    //获取模型列表
    public List<Map<String, Object>> getModelList(int bankid, String modelName, int seriesid, int product,
                                                  int customType, int state, int pageNo, int pageSize);

    //获取模型记录数
    public Integer getModelSize(int bankid, String modelName, int seriesid, int product, int customType, int state);

    //修改模型状态
    public int updateModelState(int id, int state);

    //新建模型
    public int addModel(String modelName, int bankid, String division, int seriesid, int product, int customType,
                        BigDecimal percentageDown, int scoreDown, String loanType, String area);

    //获取模型详细信息
    public List<Map<String, Object>> getModelinfo(int id);

    //修改模型详细信息
    public int updateModelinfo(int id, String modelName, String division, BigDecimal percentageDown, int scoreDown, String loanType, String area);

    //获取模型对应的模组的问题列表
    public List<Map<String, Object>> getQuestionList(int id, int pageNo, int pageSize);

    //获取模型对应的模组的问题记录数
    public Integer getQuestionSize(int id);
}
